package com.book.mapper;

import com.book.pojo.ScoreRanking;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cxy
 * @since 2023-10-13 14:50:19
 */
@Mapper
public interface ScoreRankingDao extends BaseMapper<ScoreRanking> {

    void add(@Param("bookId") Long bookId, @Param("scoreAvg")Double scoreAvg);

    void deleteByBookId(Long bookId);
}
